import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/order_result_entity.dart';

OrderResultEntity $OrderResultEntityFromJson(Map<String, dynamic> json) {
	final OrderResultEntity orderResultEntity = OrderResultEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		orderResultEntity.code = code;
	}
	final OrderResultObj? obj = jsonConvert.convert<OrderResultObj>(json['obj']);
	if (obj != null) {
		orderResultEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		orderResultEntity.msg = msg;
	}
	return orderResultEntity;
}

Map<String, dynamic> $OrderResultEntityToJson(OrderResultEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] = entity.obj.toJson();
	data['msg'] = entity.msg;
	return data;
}

OrderResultObj $OrderResultObjFromJson(Map<String, dynamic> json) {
	final OrderResultObj orderResultObj = OrderResultObj();
	final String? fatalType = jsonConvert.convert<String>(json['fatalType']);
	if (fatalType != null) {
		orderResultObj.fatalType = fatalType;
	}
	final String? standard = jsonConvert.convert<String>(json['standard']);
	if (standard != null) {
		orderResultObj.standard = standard;
	}
	final String? result = jsonConvert.convert<String>(json['result']);
	if (result != null) {
		orderResultObj.result = result;
	}
	final String? cause = jsonConvert.convert<String>(json['cause']);
	if (cause != null) {
		orderResultObj.cause = cause;
	}
	final String? propose = jsonConvert.convert<String>(json['propose']);
	if (propose != null) {
		orderResultObj.propose = propose;
	}
	final String? appraise = jsonConvert.convert<String>(json['appraise']);
	if (appraise != null) {
		orderResultObj.appraise = appraise;
	}
	final List<String>? pics = jsonConvert.convertListNotNull<String>(json['pics']);
	if (pics != null) {
		orderResultObj.pics = pics;
	}
	final double? cost = jsonConvert.convert<double>(json['cost']);
	if (cost != null) {
		orderResultObj.cost = cost;
	}
	final String? assistants = jsonConvert.convert<String>(json['assistants']);
	if (assistants != null) {
		orderResultObj.assistants = assistants;
	}
	return orderResultObj;
}

Map<String, dynamic> $OrderResultObjToJson(OrderResultObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['fatalType'] = entity.fatalType;
	data['standard'] = entity.standard;
	data['result'] = entity.result;
	data['cause'] = entity.cause;
	data['propose'] = entity.propose;
	data['appraise'] = entity.appraise;
	data['pics'] =  entity.pics;
	data['cost'] = entity.cost;
	data['assistants'] = entity.assistants;
	return data;
}